package cn.tedu.pojo2;

import org.springframework.stereotype.Component;

@Component  //IOC注解类
public class Teacher {
    //为属性赋值
    public String name = "小丽";

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                '}';
    }
}
